package com.woniuxy.userassembly.controller;


import com.woniu.cloud.api.StoreGoodApi;
import com.woniu.cloud.api.car.CarApi;
import com.woniu.cloud.common.dto.Result;
import com.woniuxy.cloud.UserAPI;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {
    @Resource
    StoreGoodApi storeGoodApi;
    @Resource
    private CarApi carApi;
    @Resource
    private UserAPI userAPI;
    @GetMapping("test")
    public String test(){
        Result storeGoodTypeList = storeGoodApi.getStoreGoodTypeList();
        System.err.println(storeGoodTypeList);
        Result carSeries = carApi.getCarSeries(1);
        System.err.println(carSeries);
        Result goodCarByIds = userAPI.getGoodCarByIds("1,2,3");
        System.err.println(goodCarByIds);
        return "success";
    }
}
